﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class WebUserControlAdminIndex : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        switch (Request.QueryString["page"])
        {
            case "user":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_Admin/UCQLTaiKhoan.ascx"));
                break;
            case "Theloai":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_Admin/UCQLTheLoai.ascx"));
                break;
            case "sanpham":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_Admin/UCQLSach.ascx"));
                break;
            case "DatHang":
                PlaceHolder1.Controls.Add(LoadControl("DonDatHang.ascx"));
                break;
            case "lienhe":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_Admin/UCAdminLienHe.ascx"));
                break;
            case "thongke":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_Admin/UCQLThongKe.ascx"));
                break;
            case "thongtin":
                PlaceHolder1.Controls.Add(LoadControl("gioithieu.ascx"));
                break;
            case "tongquan":
                PlaceHolder1.Controls.Add(LoadControl("tongquan.ascx"));
                break;
        }  
    }
}